[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Show_List


Purpose   Displays a list of choices in a scrollable window.

Decln.    Show_List(var StrArray;Strlength:byte;TotalPicks:byte);

Remarks   StrArray is a variable that is defined as an array of strings.
          This array contains a list of all the topics that the user can
          select.
          Strlength is the maximum string length of each element of the
          array.
          TotalPicks is the total number of elements in the array.

          The global byte variable L_Pick is updated with the chosen topic.
          If multiple selections are allowed, the boolean array L_Picks
          indicates the user's selections.

          The LTTT variable controls the display characteristics of the
          list.

Example

VAR
  NAME_ARRAY : ARRAY[1..5] OF STRING[20];
BEGIN
    NAME_ARRAY[1] := 'ROBERT';
    NAME_ARRAY[2] := 'DAVID';
    NAME_ARRAY[3] := 'MICHAEL';
    NAME_ARRAY[4] := 'JONATHAN';
    NAME_ARRAY[5] := 'DESMOND';
    SHOW_LIST(NAME_ARRAY,20,5);
END;

This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson